from django.conf.urls.defaults import *

urlpatterns = patterns('nokia.reporting.views',
     (r'^(creation|closed)/(\d{4})/(\d{1,2})/(\d{1,2})/$',\
             'date_report'),
     (r'^$', 'report_index'),
     (r'^new/', 'build_report'),
     (r'^(?P<id>\d+)/$', 'report_details'),
     (r'^(?P<id>\d+)/csv/$', 'report_to_csv'),
)

urlpatterns += patterns('nokia.reporting.json_views',
     (r'^json/options',  'fields_for_model'),
     (r'^(?P<id>\d+)/filter_flds',  'filter_fields'),
)
